﻿@model IEnumerable<Project_NhomMua_B4.Models.Product>
@{
    ViewBag.Title = "Index";
    <link href="@Url.Content("~/Content/MasterPage/Product.css")" rel="stylesheet" type="text/css" />
}
<div style="margin-top: 20px; height: 20px">
</div>
@{
    string Title = String.Empty;
    float Value = 0;
}
@foreach (var item in Model)
{
    @Html.Partial("_Product", item);
    Title += item.Title + " | ";
    Value += (item.Value - item.Save) * 1000;
}
@{
    Title = Title.Remove(Title.Length - 3);
}
<div style="position:fixed; right: 100px; top: 300px">
    <a target="_blank" href= "@Model.ElementAt(0).Url(@Title, @Value.ToString(), "_blank", "")">
        <img alt="Thanh toan" src="http://sandbox.nganluong.vn/data/images/buttons/11.gif"
            border="0" /></a>
</div>
